import index from '@/layout/index.vue';
import content from '@/layout/Nav/content.vue';
import CodeTableManagement from '@/pages/CodeTables/Stopwatch.vue';
import standards from '@/pages/CatalogDataStandards/Standards.vue';
import InterfacePage from '@/pages/InterfaceManagement/InterfacePage.vue';
import Database from '@/pages/DatabaseManagement/Database.vue';
import DataAsset from '@/pages/DataAssetManagement/DataAsset.vue';
import ArtificialRegister from '@/pages/InterfaceManagement/components/ArtificialRegister/ArtificialRegister.vue';
// import BasicInformation from '@/pages/interfaceManagement/components/ArtificialRegister/components/BasicInformation.vue';
// import api from '@/pages/interfaceManagement/interface.vue;
export default {
  path: '/',
  component: index,
  redirect: '/interface?menuCode=40081',
  meta: {
    title: '数据工厂',
  },
  children: [
    {
      path: '/SourceManagement',
      component: content,
      meta: {
        title: '数据源管理',
      },
      children: [
        {
          path: '/interface',
          component: InterfacePage,
          meta: {
            title: '接口管理',
          },
        },
        {
          path: '/Database',
          component: Database,
          meta: {
            title: '数据库管理',
          },
        },
        {
          path: '/ArtificialRegister',
          component: ArtificialRegister,
          meta: {
            title: '人工注册',
          },
        },
      ],
    },
    {
      path: '/DataManagement',
      component: content,
      meta: {
        title: '数据标准管理',
      },
      children: [
        {
          path: '/CodeTableManagement',
          component: CodeTableManagement,
          meta: {
            title: '码表管理',
          },
        },
        {
          path: '/standards',
          component: standards,
          meta: {
            title: '数据标准目录',
          },
        },
      ],
    },
    {
      path: '/DataAssetManagement',
      component: content,
      meta: {
        title: '数据资产管理',
      },
      children: [
        {
          path: '/DataAsset',
          component: DataAsset,
          meta: {
            title: '数据资产目录',
          },
        },
      ],
    },
  ],
};
